package com.fivetiger.controller;

import com.fivetiger.entity.Admin;
import com.fivetiger.service.impl.AdminServiceImpl;
import com.fivetiger.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api/admin/")
public class AdminController {
    @Autowired
    private AdminServiceImpl service;
    @RequestMapping("save.do")
    @ResponseBody
    public R save(Admin admin){
        return service.save(admin);
    }
}
